﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FirstLogin.ascx.cs" Inherits="UserControls_FirstLogin" %>
<%@ Register Assembly="Shove.Web.UI.4 For.NET 2.0" Namespace="Shove.Web.UI" TagPrefix="ShoveWebUI" %>

<script language="javascript" type="text/javascript">
    function isNulls()
    {
        if(document.getElementById('<%=this.txtUserName.ClientID%>').value=="")
        {
            alert("请输入用户名！");
            return false;
        }
        if(document.getElementById('<%=this.txtPassword.ClientID%>').value=="")
        {
            alert("请输入密码！");
            return false;
        } 
        if(document.getElementById('<%=this.txtCode.ClientID%>').value=="")
        {
            alert("请输入验证码！");
            return false;
        } 
        
    }
</script>

<asp:Panel ID="Login" runat="server">
    <table border="0" cellpadding="0" cellspacing="1" id="tabctr" runat="server">
        <tr>
            <td>
                <table width="99%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="106" align="left" id="tdCenter" runat="server">
                            &nbsp;会员中心
                        </td>
                        <td align="right" id="tdCenter1" runat="server">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td bgcolor="#FFFFFF">
                <div style="height: 5px;">
                </div>
                <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="27%" id="tdname" runat="server">
                            用户名：
                        </td>
                        <td colspan="2">
                            <label>
                                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></label>
                        </td>
                    </tr>
                    <tr>
                        <td id="tdpsw" runat="server">
                            密 码：
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td id="tdcode" runat="server" width="27%">
                            验证码：
                        </td>
                        <td >
                            <asp:TextBox ID="txtCode" runat="server"></asp:TextBox>
                        </td>
                        <td >
                            <ShoveWebUI:ShoveCheckCode ID="ShoveCheckCode1" runat="server" Charset="OnlyNumeric"
                                SessionKeyName="ShoveWebUI_CheckCode_CheckCode" SupportDir="~/ShoveWebUI_client" />
                        </td>
                    </tr>
                </table>
                <table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="34%">
                            <asp:ImageButton ID="ibLogin" runat="server" OnClick="ibLogin_Click" OnClientClick="return isNulls()" />
                        </td>
                        <td width="39%">
                            <asp:ImageButton ID="ibRegister" runat="server" OnClick="ibRegister_Click" />
                        </td>
                        <td width="27%" id="tdforget" runat="server">
                            <a href="#" runat="server" id="aforget">忘记密码</a>
                        </td>
                    </tr>
                </table>
                <div style="height: 5px;">
                </div>
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Panel ID="logined" runat="server" Visible="false">
    <table border="0" cellpadding="0" cellspacing="1" id="tabctr1" runat="server">
        <tr>
            <td>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td align="left" id="tdsign1" runat="server">
                            会员中心
                        </td>
                        <td id="tdspace1" runat="server" align="right">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td bgcolor="#FFFFFF">
                <div style="height: 5px;">
                </div>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="tab1"
                    runat="server">
                    <tr>
                        <td width="10">
                            &nbsp;
                        </td>
                        <td id="tduser1" runat="server" align="left">
                            <span>
                                <asp:Label ID="lbUserName" runat="server"></asp:Label></span>
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="tab2"
                    runat="server">
                    <tr>
                        <td width="10">
                            &nbsp;
                        </td>
                        <td id="tdcount1" runat="server" align="left">
                            选购商品共 [<asp:Label ID="lbGoodNum" runat="server" Text="0"></asp:Label>] 种
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="tab3"
                    runat="server">
                    <tr>
                        <td width="10">
                            &nbsp;
                        </td>
                        <td id="tdtotalmoney1" runat="server" align="left">
                            总计：<span><font color="red">￥<asp:Label ID="lbGoodSum" runat="server" Text="0"></asp:Label>元</font></span>
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="tab4"
                    runat="server">
                    <tr>
                        <td width="10">
                            &nbsp;
                        </td>
                        <td id="tdalink1" runat="server" align="left">
                            <a href="Default.aspx?PN=cart">[进入购物车]</a>&nbsp;&nbsp;<a href="Default.aspx?PN=member_home">[进入会员中心]</a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Panel>
